<h2><?php echo $blog_category->getName() ?></h2>

<ul class="nice-list">
<?php   

            foreach ($pager->getResults() as $blog_new): 
                    echo '<li><a href="'.url_for('new_show_user', $blog_new).'"><span class="quiet"></span>';
                    foreach ($blog_new->getMediums(1) as $new_medium) {  
                        echo '<img style="vertical-align: top; float:left; margin:0px 3px 0px 2px" width="200" height="160" src="'.$new_medium->getFolder().'/'.$new_medium->getUrl().'" alt="'.$blog_new->getTitle().'" class="bordered" title="'.$blog_new->getTitle().'"/>';
                    }
                    
                    if(count($blog_new->getMediums(1)) == 0){
                      echo '<img style="vertical-align: top; float:left; margin:0px 3px 0px 2px" width="200" height="160"   class="bordered"  src="/images/notfound.jpg" title="'.$blog_new->getTitle().'"/>';
                      
                    }
                    
                    echo '<h3>'.$blog_new->getTitle().'</h3></a>';
                    
                    echo $blog_new->getSummary(ESC_RAW);
                        
                    echo '</li><div style="clear:both"></div>';

            endforeach; ?>
            </ul>


<?php if ($pager->haveToPaginate()): ?>
  <div class="pagination">
    <a href="<?php echo url_for('category', $blog_category) ?>?page=1">
      <img src="/images/first.png" alt="Primer página" title="Primer página" />
    </a>
 
    <a href="<?php echo url_for('category', $blog_category) ?>?page=<?php echo $pager->getPreviousPage() ?>">
      <img src="/images/previous.png" alt="Página anterior" title="Página anterior" />
    </a>
 
    <?php foreach ($pager->getLinks() as $page): ?>
      <?php if ($page == $pager->getPage()): ?>
        <?php echo $page ?>
      <?php else: ?>
        <a href="<?php echo url_for('category', $blog_category) ?>?page=<?php echo $page ?>"><?php echo $page ?></a>
      <?php endif; ?>
    <?php endforeach; ?>
 
    <a href="<?php echo url_for('category', $blog_category) ?>?page=<?php echo $pager->getNextPage() ?>">
      <img src="/images/next.png" alt="Página siguiente " title="Página siguiente " />
    </a>
 
    <a href="<?php echo url_for('category', $blog_category) ?>?page=<?php echo $pager->getLastPage() ?>">
      <img src="/images/last.png" alt="Ultima página" title="Ultima página" />
    </a>
  </div>
<?php endif; ?>
 <br/>
<div class="pagination_desc">
  <strong>
      <?php if($pager->getNbResults() != 0){
                echo $pager->getNbResults().' Noticias en la categoria '.$blog_category->getName();
      }else{
                echo 'No hay noticias en la categoria '.$blog_category->getName();
      }
                ?>
  </strong>
    
 
  <?php if ($pager->haveToPaginate()): ?>
    - pagina <strong><?php echo $pager->getPage() ?>/<?php echo $pager->getLastPage() ?></strong>
  <?php endif; ?>
</div>
<br/>
